package unit2.part5;

import java.util.Scanner;

public class InputTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.next();
        System.out.println(line);// 一行字符串
        int i = scanner.nextInt();
        System.out.println(i);// 整数
        double d = scanner.nextDouble();
        System.out.println(d);// 浮点数
        scanner.useDelimiter("\n");// 根据换行符区分行
        line = scanner.next();// 一行字符串，可以包含空格
        for (String str : line.split(" ")) {// 拆分空格，并遍历
            System.out.println(str);
        }
    }
}
